package com.training.java.core.interfaceexamples;

public class interfaceDemo2 {

	public static void main(String[] args) {

		Person person1 = new Student();
		Person person2 = new Customer();
		Person person3 = new Employee();

		person1.driveCar();
		person1.goShopping();
		person1.work();

		System.out.println("--------------------------------");

		person2.driveCar();
		person2.goShopping();
		person2.work();

		System.out.println("--------------------------------");

		person3.driveCar();
		person3.goShopping();
		person3.work();

	}

}
